
		<div class="ui-portlet">
			{{template app_forums/_user_apps}}
			<ol class="breadcrumb">
			  <li><a href="/users/index"><i class="fa fa-home"></i>&nbsp;&nbsp;微信版面</a></li>
			  <li class="active">编辑版面项</li>
			</ol>
		</div>           
       <hr>
       <h3>微信小程序社区版面</h3>
      
<hr>
{{$this->Form->create('AppForum',array('class'=>'form-horizontal','role'=>'form'))}}
	
	<div class="form-group">
		<label class="col-sm-2 control-label" for="AppForumName">版面名称</label>
		<div class="col-sm-9 controls">
			{{$this->Form->hidden('id')}}{{$this->Form->hidden('app_id',array('value'=>$app_id))}}
			<input type="hidden" name="referer" value="/app_forums/lists/{{$app_id}}">
			{{$this->Form->input('name',array('class'=>'form-control','required'=>'required','div'=>false,'label'=>false))}}
		</div>
	</div>
	
	
	
	<div class="form-group" id="AppForumParent">
		<label class="col-sm-2 control-label">上级版面</label>
		<div class="col-sm-9 controls select">
			{{$this->Form->input('parent_id',array('class'=>'form-control','div'=>false,'label'=>false))}}
			<small>一级版面无需设置上级</small>
		</div>
	</div>
	
		
		
		<div class="form-group" id="divAppForumSlug">
			<label class="col-sm-2 control-label" for="AppForumKey">版面图标</label>
			<div class="col-sm-9 controls">
				{{$this->Swfupload->load('coverimg',array('class'=>'form-control',
				'modelClass'=>'AppForum',
				'no_db'=>1,'upload_limit'=>1,
				'file_types'=> '*.jpg;*.gif;*.png;*.bmp',
				'isadmin'=>false,
				'div'=>false,'label'=>false))}}
			</div>
		</div>
		
		<div class="form-group" id="divAppForumSlug">
			<label class="col-sm-2 control-label" for="AppForumKey">是否显示</label>
			<div class="col-sm-9 controls">
				{{$this->Form->input('visible',array('class'=>'form-control','default'=>1,'options'=>array(0=>__('No'),1=>__('Yes')),'div'=>false,'label'=>false))}}
			</div>
		</div>
		
		<div class="form-group">
		<label class="col-sm-2 control-label" for="AppForumSort">排序值</label>
		<div class="col-sm-9 controls">
			{{$this->Form->input('sort',array('class'=>'form-control','div'=>false,'label'=>false))}}
			<small>排序值越小的排越前面</small>
		</div>
	</div>
	
				
		<div class="form-group" id="divAppForumSlug">
			<label class="col-sm-2 control-label" for="AppForumKey">描述内容</label>
			<div class="col-sm-9 controls">
				{{$this->Form->input('summary',array('class'=>'form-control','div'=>false,'rows'=>'3','label'=>false))}}
				<small>版面描述500字以内</small>
			</div>
		</div>
	
	<div class="form-group">
		<label class="col-sm-2 control-label"></label>
		<div class="col-sm-9"><input class="btn btn-primary" type="submit" value="提交"></div>
	</div>
{{$this->Form->end()}}


